import axios from "./axios";
export const request = (type) => {
    switch (type) {
        case "RHISCenter":
            axios.defaults.baseURL = ApiJson.RHISCenter;
            break;
        case "UserCenter":
            axios.defaults.baseURL = ApiJson.UserCenter;
            break;
        case "AssessmentCenter":
            axios.defaults.baseURL = ApiJson.AssessmentCenter;
            break;
        default :
            axios.defaults.baseURL = ApiJson.RHISCenter;
            break;
    }
    return axios
}